nav {
  @include color('background-color', 'main-background');
  display: flex;
  padding: 0.3rem;
  position: relative;
  width: 100%;
  z-index: 100;

  @include resp(small) {
    display: block;
  }

  .bar1,
  .bar2,
  .bar3 {
    @include color('background-color', 'primary');
    @include color('border-color', 'primary');
    @include color('color', 'primary');
    border-bottom-left-radius: 15px 5px;
    border-bottom-right-radius: 15px 3px;
    border-bottom-style: solid;
    border-bottom-width: 5px;
    margin: 6px 0;
    transition: 0.4s;
    width: 2rem;
  }

  .collapsible input[id^=collapsible]:checked + button, // Leaving for backwards compatibility. See docs for proper usage
  .collapsible input[id^=collapsible]:checked + label {
    .bar1 {
      transform: rotate(-45deg) translate(-9px, 7px);
    }

    .bar2 {
      opacity: 0;
    }

    .bar3 {
      transform: rotate(45deg) translate(-8px, -9px);
    }
  }

  &.split-nav {
    justify-content: space-between;
  }

  &.fixed {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
  }

  div {
    margin: 0 1rem;
  }

  ul.inline {
    margin-bottom: 0;
    margin-top: 10px;
    padding: 0;
  }

  ul.inline li {
    display: inline-block;
    margin: 0 0.5rem;

    @include resp(small) {
      display: block;
      margin: 1rem 0;
    }
  }

  a {
    @include color('color', 'primary');
    @include color('border-bottom-color', 'primary');
    background-image: none;
    border-bottom-left-radius: 15px 3px;
    border-bottom-right-radius: 15px 5px;
    border-bottom-style: solid;
    border-bottom-width: 5px;
    padding-bottom: 0.1rem;
  }

  a:hover {
    @include color('border-color', 'primary-light');
    border-bottom-style: solid;
    border-bottom-width: 5px;
  }

  ul.inline li a {
    font-size: 1.3rem;
  }

  ul.inline li::before {
    content: '';
  }

  ul {
    @include resp(medium) {
      text-align: center;
    }
  }

  .nav-brand {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin: 0;
      margin-bottom: 0.2rem;
    }
  }

  .collapsible {
    @include resp(small) {
      width: 100%;
    }
  }

  .collapsible input[id^=collapsible]:checked ~ div.collapsible-body {
    margin: 0;
    max-height: 960px;
    opacity: 1;
    padding: 0;
  }

  .collapsible:nth-of-type(1),
  .collapsible .collapsible-body {
    border: 0;

    @include resp(null, $small-screen + 1px) {
      display: contents;
    }
  }

  div.collapsible-body {
    padding: none;
  }

  .collapsible label {
    @include color('border-color', 'primary');

    border-bottom-left-radius: 15px 255px;
    border-bottom-right-radius: 225px 15px;
    border-style: solid;
    border-top-left-radius: 255px 15px;
    border-top-right-radius: 15px 225px;
    border-width: 2px;
  }

  .collapsible > button {
    // Leaving for backwards compatibility. See docs for proper usage
    border: 0;
  }

  .collapsible > button, // Leaving for backwards compatibility. See docs for proper usage
  .collapsible > label {
    @include color('background-color', 'main-background');
    display: none;
    font-size: 0.5rem;
    margin-right: 1rem;
    padding: 0.25rem;
    position: absolute;
    right: 0;
    top: 0.2rem;

    @include resp(small) {
      display: block;
    }
  }
}
